/*
 * Copyright 2012 Marsrutai.lt
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package lt.marsrutai.mobile.android.service;

import java.util.List;

import lt.marsrutai.mobile.android.exception.DataAccessException;
import lt.marsrutai.mobile.android.model.ArrivalTime;
import lt.marsrutai.mobile.android.model.DayGroup;
import lt.marsrutai.mobile.android.model.MobileScope;
import lt.marsrutai.mobile.android.model.RouteSearchResult;
import lt.marsrutai.mobile.android.model.Schedule;
import lt.marsrutai.mobile.android.model.Stop;
import lt.marsrutai.mobile.android.model.StopArrivalTimes;
import lt.marsrutai.mobile.android.model.Track;
import lt.marsrutai.mobile.android.model.Transport;
import lt.marsrutai.mobile.android.model.VehiclePosition;

/**
 *
 * @author Martynas Mickevicius
 *
 */
public interface DataService {

    public List<MobileScope> getMobileScopes() throws DataAccessException;

    public MobileScope getScopeInfo(String scopeName) throws DataAccessException;

    public List<String> getStopNames(String scopeName) throws DataAccessException;

    public List<Stop> getStops(String scopeName, boolean withSchedules, String searchQuery, Double lat, Double lng, Double distance) throws DataAccessException;

    public Stop getStopById(String scopeName, String stopId) throws DataAccessException;

    public List<ArrivalTime> getArrivalTimes(String scopeName, String stopId, String stopGroupName, String scheduleId, int maxMinutes, int maxResults, String time, boolean isConnected)
            throws DataAccessException;

    public List<Schedule> getSchedules(String scopeName) throws DataAccessException;

    public Schedule getScheduleById(String scopeName, String scheduleId) throws DataAccessException;

    public List<Track> getTracks(String scopeName, String scheduleId) throws DataAccessException;

    public Track getTrackById(String scopeName, String trackId) throws DataAccessException;

    public List<Stop> getTrackStops(String scopeName, String trackId) throws DataAccessException;

    public List<DayGroup> getDifferentRunningDays(String scopeName, String scheduleId) throws DataAccessException;

    public StopArrivalTimes getStopTimes(String scopeName, String scheduleId, String trackId, String stopId) throws DataAccessException;

    public RouteSearchResult findRoutes(String scopeName, String start, String end, String time, boolean isArrival, int maxRides,
            int changeDuration, int maxWalkDistance, int walkSpeed, String transports, boolean withPolyline) throws DataAccessException;

    public List<Track> getTracksWithIds(String scopeName, String[] trackIds) throws DataAccessException;

    public List<ArrivalTime> getRunStops(String scopeName, String runId) throws DataAccessException;

    public List<Transport> getTransports(String scopeName) throws DataAccessException;

    public List<VehiclePosition> getVehiclePositions(String scopeFolder, String transportId, String scheduleName) throws DataAccessException;
}
